<?php /*a:4:{s:50:"D:\projects\junhe\app\index\view\member\index.html";i:1740844839;s:58:"D:\projects\junhe\app\index\view\common\header-member.html";i:1740136709;s:55:"D:\projects\junhe\app\index\view\common\member-nav.html";i:1740671390;s:51:"D:\projects\junhe\app\index\view\common\footer.html";i:1740136709;}*/ ?>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no,mail=yes">

	<title><?php if(isset($article['title'])): ?><?php echo htmlentities($article['title'],ENT_QUOTES); ?> - <?php endif; if(isset($catInfo['title'])): ?><?php echo htmlentities($catInfo['title'],ENT_QUOTES); ?> -
		<?php endif; ?><?php echo htmlentities($config['name'],ENT_QUOTES); ?></title>
	<meta name="keywords"
		content="<?php if(isset($article['keywords'])): ?><?php echo htmlentities($article['keywords'],ENT_QUOTES); elseif(isset($catInfo['keywords'])): ?><?php echo htmlentities($catInfo['keywords'],ENT_QUOTES); else: ?><?php echo htmlentities($config['keyword'],ENT_QUOTES); ?><?php endif; ?>">
	<meta name="description"
		content="<?php if(isset($article['subtitle'])): ?><?php echo htmlentities($article['subtitle'],ENT_QUOTES); elseif(isset($catInfo['desc_text'])): ?><?php echo htmlentities($catInfo['desc_text'],ENT_QUOTES); else: ?><?php echo htmlentities($config['content'],ENT_QUOTES); ?><?php endif; ?>">
	<link rel="shortcut icon" href="<?php echo htmlentities($config['site_icon'],ENT_QUOTES); ?>" type="image/x-icon">
	<script src="/public/home/js/jquery-1.8.3.min.js"></script>
	<link rel="stylesheet" href="/public/home/layui/css/layui.css">
	<link rel="stylesheet" href="/public/home/css/common.css">
	<link rel="stylesheet" href="/public/home/css/hover.css">
	<link rel="stylesheet" href="/public/home/css/index.css">
	<script type="text/javascript" src="/public/home/layui/layui.js"></script>
	<link rel="stylesheet" href="/public/home/css/swiper-bundle.css" />
	<script src="/public/home/js/scrollReveal.js" type="text/javascript"></script>

</head>

<body>
	<header class="header w100">
	
			<div class="layui-main d-flex al-c jc-s">
			
					<div class="d-flex al-c">
						<a href="/" class="logo img_100 mr20 d-fs">
							<img class="" src="<?php echo htmlentities($config['pic'],ENT_QUOTES); ?>">
						</a>
					</div>

					<ul class="d-flex  jc-se al-c layui-nav layui-hide-xs ">
						<li
							class="layui-nav-item <?php if((isset($catTreeList['topCate']['id']) && empty($catTreeList['topCate']['id'])) || !isset($catTreeList['topCate']['id'])): ?><?php endif; ?>">
							<a href="/"><?php echo htmlentities($function->getCatInfo('1')['title'],ENT_QUOTES); ?></a>
						</li>

						<?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): if( count($nav)==0 ) : echo "" ;else: foreach($nav as $key=>$navValue): ?>
							<li
								class="layui-nav-item <?php if((isset($catTreeList['topCate']['id']) && $catTreeList['topCate']['id'] == $navValue['id'])): ?><?php endif; ?> ">
								<a href="<?php echo htmlentities($navValue['url'],ENT_QUOTES); ?>" > <?php echo htmlentities($navValue['title'],ENT_QUOTES); ?></a>
							</li>
						<?php endforeach; endif; else: echo "" ;endif; ?>

					</ul>
					<div class="layui-hide layui-show-xs-block  ">
						<i lay-on="nav" class="layui-icon layui-icon-spread-left "></i>
					</div>
				
				<div class="d-flex gap20 al-c">
				    <a href="/index/member/" class="img_box d-fs">
				        <img src="/public/home/images/user-account.png">
				    </a>
                    <form>
                        <input placeholder="输入关键词搜索">
                        <button>
                            <img src="/public/home/images/search.png">
                        </button>
                    </form>
				</div>
				
			</div>
	</header>

	<script>
  layui.use(function(){
    var layer = layui.layer;
 
    	
    		var util = layui.util;
			util.on({
				nav: function () {
					layer.open({
						type: 1,
						offset: 'l',
						anim: 'slideRight', // 从左往右
						area: ['200px', '100%'],
						shade: 0.1,
						title: false,
						shadeClose: true,
						closeBtn: 0,
						id: 'ID-demo-layer-direction-l',
						content: `
                <ul class="gary_c3 d-grid gap30  pt40 pb40">
                
                	<li class="pl20 pr20 <?php if((isset($catTreeList['topCate']['id']) && empty($catTreeList['topCate']['id'])) || !isset($catTreeList['topCate']['id'])): ?>layui-this <?php endif; ?>">
							<a href="/"><?php echo htmlentities($function->getCatInfo('1')['title'],ENT_QUOTES); ?></a>
						</li>
						<?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): if( count($nav)==0 ) : echo "" ;else: foreach($nav as $key=>$navValue): ?>
            			<li
            				class="pl20 pr20 <?php if((isset($catTreeList['topCate']['id']) && $catTreeList['topCate']['id'] == $navValue['id'])): ?>layui-this <?php endif; ?> ">
            				<a <?php if(!$navValue['childList']): ?>href="<?php echo htmlentities($navValue['url'],ENT_QUOTES); ?>" <?php endif; ?>> <?php echo htmlentities($navValue['title'],ENT_QUOTES); ?></a>
            			</li>
            		<?php endforeach; endif; else: echo "" ;endif; ?>
            		</ul>
						
                `
					});
				},
			});
    	
  });

	</script>
<main class="member-index">
    <section>
        <div class="layui-main">
            <nav class="member-nav">
                <div href="/index/member">
                    <img src="/public/home/images/member-user.png"> 
                    <div>
                        <p>用户</p>
                        <h4><?php echo htmlentities((isset($member['nickname']) && ($member['nickname'] !== '')?$member['nickname']:''),ENT_QUOTES); ?></h4>
                    </div>
                </div>
                 <a a href="/index/member/">
                    <img src="/public/home/images/member-order.png"> 
                    <div>
                        <p>已下单产品 </p>
                        <h4><?php echo htmlentities((isset($order_count) && ($order_count !== '')?$order_count:0),ENT_QUOTES); ?></h4>
                    </div>
                </a> <a href="/index/member/cart">
                    <img src="/public/home/images/member-buy.png"> 
                    <div>
                        <p>购物车 </p>
                        <h4><?php echo htmlentities((isset($cart_num) && ($cart_num !== '')?$cart_num:0),ENT_QUOTES); ?></h4>
                    </div>
                </a>
            </nav>
        <h4 class="mb30">我的订单</h4>
        <form  action="<?php echo sysuri(); ?>" autocomplete="off" class=" order-search layui-form  ">
            <ul>
                <li>
                    <span>订单号：</span>
                    <div class="block">
                        <input type="text" class="layui-input" name="order_no" value="<?php echo isset($query_search['order_no']) ? htmlentities($query_search['order_no'],ENT_QUOTES) : ''; ?>">
                    </div>
                </li>
             
                <li>
                    <span>产品名称：</span>
                    <div class="block">
                        <input type="text" class="layui-input" name="order_goods" value="<?php echo isset($query_search['order_goods']) ? htmlentities($query_search['order_goods'],ENT_QUOTES) : ''; ?>">
                    </div>
                </li>

                <li>
                    <span>型号：</span>
                    <div class="block">
                        <input type="text" class="layui-input" name="goods_models" value="<?php echo isset($query_search['goods_models']) ? htmlentities($query_search['goods_models'],ENT_QUOTES) : ''; ?>">
                    </div>
                </li>
               <li>
                <span>下单时间：</span>
                <div class="block">
                    <input type="text" class="layui-input"  id="order_date" name="order_date"  value="<?php echo isset($query_search['order_date']) ? htmlentities($query_search['order_date'],ENT_QUOTES) : ''; ?>">
                </div>
            </li>

            <button class="layui-btn" style="border-radius: 20px;"><i class="layui-icon">&#xe615;</i> 搜索</button>
            <button type="reset" style="border-radius: 20px;" class="layui-btn">重置</button>
            </ul>
            
        </form>
      
        <hr>
        
        <ul class="index-order">
            <?php if(count($order_list)): if(is_array($order_list) || $order_list instanceof \think\Collection || $order_list instanceof \think\Paginator): $i = 0; $__LIST__ = $order_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$order): $mod = ($i % 2 );++$i;?> 
                <p>订单号 ：<?php echo htmlentities($order['order_no'],ENT_QUOTES); ?></p>
                    <?php if(is_array($order['goods']) || $order['goods'] instanceof \think\Collection || $order['goods'] instanceof \think\Paginator): $i = 0; $__LIST__ = $order['goods'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods): $mod = ($i % 2 );++$i;?> 
                        <li>
                          
                            <div class="img_100 img1">
                                
                                <img src="<?php echo htmlentities($goods['goods_thumb'],ENT_QUOTES); ?>">
                            </div>
                            <div class="content">
                                <p><?php echo htmlentities($goods['goods_name'],ENT_QUOTES); ?></p>
                                <p><?php echo htmlentities($goods['spec'],ENT_QUOTES); ?></p>
                            </div>
                            <hr>
                            <div class="num">
                                <span>  x<?php echo htmlentities($goods['goods_num'],ENT_QUOTES); ?></span>
                            
                                </div>
                            <hr>
                            <div class="time">
                                <span><?php echo htmlentities($order['create_at'],ENT_QUOTES); ?></span>
                            </div>
                            <hr>
                            <div class="btn">
                                <a href="/order-detail-<?php echo htmlentities($order['order_no'],ENT_QUOTES); ?>" class="layui-btn">查看订单</a>
                                <a href="/order-export-<?php echo htmlentities($order['order_no'],ENT_QUOTES); ?>" class="layui-btn">导出订单</a>
                            </div>
                        </li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            <?php endif; ?>
        
        </ul>
        
        
        <div class="pagenum1">
            
<div id="demo-laypage-normal-1"></div>
        </div>
        </div>
    </section>
</main>


<footer class="pt36 pb36 ">

      <div class="layui-main d-grid gap20 al-c white_c" >
         <a href="/" class="img_box  mb10">
            <img src="<?php echo htmlentities($config['footer_pic'],ENT_QUOTES); ?>">
         </a>
       
            <ul class="d-flex  jc-c al-c gap84 gap20-xs flex-wrap">
        
               <?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): if( count($nav)==0 ) : echo "" ;else: foreach($nav as $key=>$navValue): ?>

               <li lay-unselect>
                  <a href="<?php echo htmlentities($navValue['url'],ENT_QUOTES); ?>"> <?php echo htmlentities($navValue['title'],ENT_QUOTES); ?></a>
               </li>
               <?php endforeach; endif; else: echo "" ;endif; ?>

            </ul>

         <ul class="d-flex al-c jc-se flex-wrap">
            <li >
               <div class="item">
              <img class="d-fs" src="/public/home/images/tel.png">    联系电话：<span> <?php echo htmlentities($config['tel'],ENT_QUOTES); ?></span>
               </div>
            </li>
            <li >
               <div class="item">
                 <img class="d-fs" src="/public/home/images/email.png">  <span class="white-nowrap"> 邮箱：</span> <span><?php echo htmlentities($config['email'],ENT_QUOTES); ?></span>
               </div>
            </li>
            <li >
               <div class="item">
                 <img class="d-fs" src="/public/home/images/address.png"> <span class="white-nowrap"> 地址：</span> <span><?php echo htmlentities($config['address'],ENT_QUOTES); ?></span>
               </div>
            </li>

         </ul>
         <p class="ft14 text-align-center"><?php echo htmlentities($config['copy'],ENT_QUOTES); ?></p>
      </div>
</footer>
</body>

</html>
<script>
    layui.use(function(){
        var laypage = layui.laypage;
        var laydate = layui.laydate
        laydate.render({ 
            elem: '#order_date'
            ,type: 'date'
            ,range: '/'
            ,trigger:'click'
            });
        // 普通用法
        laypage.render({
            elem: 'demo-laypage-normal-1',
            count: 10, // 数据总数
            curr : <?php echo htmlentities($page,ENT_QUOTES); ?>,
            count: <?php echo htmlentities($order_count,ENT_QUOTES); ?>,
            jump: function(obj, first){
                // obj 包含了当前分页的所有参数
                let page = obj.curr;

                // 获取当前 URL 和查询参数
                let url = new URL(location.href);
                let params = new URLSearchParams(url.search);

                // 设置或更新 page 参数
                params.set('page', page);

                // 将更新后的参数应用到 URL
                url.search = params.toString();

                // 首次不执行
                if (!first) {
                        // 跳转到新的 URL
                    location.href = url.toString();
                }
            }
        });

        });
</script>


